import request from '@/utils/request'

//表查询
export function getTableList(data) {
  return request({
    url: '/system/dataExtraction/dataBloodRelation/tableList',
    method: 'post',
    data
  })
}

//数据源头 库列表
export function getSourceList() {
  return request({
    url: '/system/dataExtraction/dataBloodRelation/getSourceList',
    method: 'get'
  })
}

//全量层 库列表
export function getSourceListByHive() {
  return request({
    url: '/system/dataExtraction/dataBloodRelation/getSourceListByHive',
    method: 'get'
  })
}

//核心层 库列表
export function getSourceListByCore() {
  return request({
    url: '/system/dataExtraction/dataBloodRelation/getSourceListByCore',
    method: 'get'
  })
}

//主题层 库列表
export function getSourceListByTopic() {
  return request({
    url: '/system/dataExtraction/dataBloodRelation/getSourceListByTopic',
    method: 'get'
  })
}

//数据服务 库列表
export function getMarketApiList() {
  return request({
    url: '/system/dataExtraction/dataBloodRelation/getMarketApiList',
    method: 'get'
  })
}

//新增子节点
export function addMetaModel(data) {
  return request({
    url: '/system/metamodel/add',
    method: 'post',
    data
  })
}

//新增提交
export function addSumbit(data) {
  return request({
    url: '/system/dataExtraction/dataBloodRelation/add',
    method: 'post',
    data
  })
}
//查看
export function dataBloodRelation(data) {
  return request({
    url: '/system/dataExtraction/dataBloodRelation/list',
    method: 'post',
    data
  })
}

//修改编辑后提交
export function editSubmit(data) {
  return request({
    url: '/system/dataExtraction/dataBloodRelation/update',
    method: 'post',
    data
  })
}
